import request from '@/utils/request';
export default {
    login (data)
    {
        return request(
            {
                url:'/xp/api/user/login',
                method:'post',
                data
            }
        );
    },
    register (data)
    {
        return request(
            {
                url:'/xp/api/user/register',
                method:'post',
                data
            }
        );
    },
    checkUserState ()
    {
        return request(
            {
                url:'/xp/api/user/check',
                method:'get'
            }
        );
    },
    forgetPassword (data)
    {
        return request({
            url:'xp/api/user/forget',
            method:'post',
            data
        });
    }
};